package com.sakila.pojo;

import java.io.Serializable;
import java.util.Date;
import org.hibernate.validator.constraints.NotBlank;

public class Address implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8210536721062808605L;
	
	private Integer id;
	@NotBlank
	private String address1;
	private String address2;
	@NotBlank
	private String district;
	private City city;
	private String postalCode;
	@NotBlank
	private String phone;
	private Date lastUpdate;
	
	public Address() {
		// TODO Auto-generated constructor stub
	}

	public Address(String address1, String address2, String district,
			City city, String postalCode, String phone, Date lastUpdate) {
		super();
		this.address1 = address1;
		this.address2 = address2;
		this.district = district;
		this.city = city;
		this.postalCode = postalCode;
		this.phone = phone;
		this.lastUpdate = lastUpdate;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAddress1() {
		return address1;
	}

	public void setAddress1(String address1) {
		this.address1 = address1;
	}

	public String getAddress2() {
		return address2;
	}

	public void setAddress2(String address2) {
		this.address2 = address2;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public String getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}
}
